<template>
  <!-- <div id="app">
    <nav>
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </nav>
    <router-view/>
  </div> -->
  <!-- template下面必须要有一个元素 -->
  <div id="app">
    <router-view></router-view>
  </div>
</template>
<script>
import "nprogress/nprogress.css";
export default {};
</script>
<style lang="scss">
#nprogress .bar {
  background: #79669d;
  height: 5px;
}
/* #app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
} */
// 在app最大的组件里面设置了常用样式，里面子组件可以使用
* {
  padding: 0;
  margin: 0;
  list-style: none;
}

a {
  text-decoration: none;
}
//设置一些flex常用样式
.flex {
  display: flex;
}
.j-l {
  justify-content: flex-start;
}
.j-s {
  justify-content: space-between;
}
.j-a {
  justify-content: space-around;
}
.j-c {
  justify-content: center;
}
.a-c {
  align-items: center;
}
</style>
